var express = require('express');
var router = express.Router();
const indexApi = require("../api/indexApi")
const apiUtil = require('../utils/apiUtil')
const baseController = require("../controller/baseController")
/**
 * 首页
 */
router.get(["/", "/index"], baseController.simpleArticleList);
/**
 * 文章留言
 */
router.get(["/list", '/list/:currentPage/:pageSize'], baseController.listPage)
/**
 * 文件下载列表
 */
router.get("/resource", baseController.resource)
/**
 * 获取文章详情页面
 */
router.get("/page/:id", baseController.page)
/**
 * 留言页面
 */
router.get("/leaveMsg/", (req, resp) => {
  resp.render("leaveMsg")
})

router.get("/rpcError", baseController.rpcError)

module.exports = router;
